package com.zkthink.ceres.pay.dao;

import com.baomidou.mybatisplus.annotation.SqlParser;
import com.zkthink.base.mapper.SuperMapper;
import com.zkthink.ceres.pay.entity.WxPayAuth;

import com.zkthink.ceres.pay.wechat.v3.entity.request.applyments.AccountValidation;
import com.zkthink.ceres.tenant.entity.TenantApply;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Repository;

/**
 * <p>
 * Mapper 接口
 * 微信支付认证
 * </p>
 *
 * @author vivi.huang
 * @date 2020-06-28
 */
@Repository
public interface WxPayAuthMapper extends SuperMapper<WxPayAuth> {

    /**
     * 获取商家入驻信息
     * @param tenant
     * @return
     */
    @SqlParser(filter = true)
    TenantApply getTenantApply(@Param("tenant") String tenant);
    /**
     * 更新状态
     * @param code
     */
    void updateState(@Param("code") int code);

    /**
     * 更新账户认证详情
     */
    void updateAccountDetail(@Param("destinationAccountName") String destinationAccountName,
                             @Param("destinationAccountNumber")String destinationAccountNumber,
                             @Param("payAmount") String payAmount,
                             @Param("deadline") String deadline,
                             @Param("remark") String remark,
                             @Param("rejectReason") String rejectReason,
                             @Param("subMchid")  String subMchid);
}
